package com.zretc.admin.service;

import com.zretc.api.pojo.SysUser;
import com.zretc.api.pojo.adminModule.Announcement;
import com.zretc.common.entity.R;
import com.zretc.common.entity.RespResult;

import java.util.Map;

public interface AdminService {
    RespResult approvalRecommend(Integer recommendId, Integer status);

    RespResult deleteRecommend(Integer recommendId);

    RespResult approvalActivity(Integer activityId, Integer status);

    RespResult  deleteActivity(Integer activityId);

    RespResult approvalBlogId(Long blogId, Byte status);

    RespResult  deleteBlog(Long blogId);

    Map<String, Object> getAllRecommend(Integer pageNum, Integer pageSize, Integer status);

    Map<String, Object> getAllActivity(Integer pageNum, Integer pageSize, Integer status);

    Map<String, Object> getAllBlog(Integer pageNum, Integer pageSize, Integer status);

    String addAnnouncement(Announcement announcement);

    String delAnnouncement(Integer announcementId);

    Map<String, Object> getAllAnnouncement(Integer pageNum, Integer pageSize, Integer is_deleted);

    Map<String, Object> getAlluser(Integer pageNum, Integer pageSize, String role);

    RespResult deleteUser(Integer userId);

    RespResult updateUser(Integer userId, Integer role);
}
